const notifier = require('node-notifier');

nodeSchedule.scheduleJob('0,5,10,20,30,40,50,55 * * * * *', async function () {
    try {
        console.log('notifier')
        notifier.notify({
            'title': 'David Walsh Blog',
            'subtitle': 'Daily Maintenance',
            'message': 'Go approve comments in moderation!',
            'icon': 'dwb-logo.png',
            'contentImage': 'blog.png',
            'sound': 'ding.mp3',
            'wait': true
        });
    } catch (error) {
        console.error(error);
    }
});
